package com.lzx.payment.controller;

import com.lzx.common.utils.R;
import com.lzx.payment.service.RefundInfoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author lzx
 * @since 2022-12-19
 */
@RestController
@RequestMapping("/payment/refundInfo")
public class RefundInfoController {
    @Resource
    private RefundInfoService refundInfoService;

    //获取退款列表
    @GetMapping("/getRefundInfoList/{current}/{size}")
    public R getRefundInfoList(@PathVariable int current, @PathVariable int size) {
        return refundInfoService.getRefundInfoList(current, size);
    }
}
